package com.cskaoyan.order.biz.convert;

import com.cskaoyan.mall.commons.result.AbstractRequest;
import com.cskaoyan.order.biz.context.CancelOrderContext;
import com.cskaoyan.order.biz.context.TransHandlerContext;

/**
 * @author zhuqiushi
 * @since 2022/09/21 16:23
 */
public class CancelOrderConvert implements TransConvert{
    @Override
    public TransHandlerContext convertRequest2Ctx(AbstractRequest req, TransHandlerContext context) {
        return null;
    }
    public TransHandlerContext convertCancelIdToContext(String id,TransHandlerContext context) {
        CancelOrderContext cancelOrderContext = (CancelOrderContext) context;
        cancelOrderContext.setOrderId(id);
        return cancelOrderContext;
    }
}
